package com.collect.tanzania.zhiBean.zhiReceive;

import com.collect.tanzania.zhiUtils.StringUtil;
import com.collect.tanzania.zhiUtils.ZHICalendarUtil;

import java.io.Serializable;

public class ZHIRDsHistoryEntity implements Serializable {

    private int finishedNum;
    private int unfinishedNum;
    private int knowUserNum;
    private int nameMatchNum;
    private int noKnowUserNum;
    private int nameUnMatchNum;
    private int noAnswerNum;
    private int assignNum;
    private long assignDate;
    private String date;
    private String sysLoginName;

    public int getFinishedNum() {
        return finishedNum;
    }

    public void setFinishedNum(int finishedNum) {
        this.finishedNum = finishedNum;
    }

    public int getUnfinishedNum() {
        return unfinishedNum;
    }

    public void setUnfinishedNum(int unfinishedNum) {
        this.unfinishedNum = unfinishedNum;
    }

    public int getKnowUserNum() {
        return knowUserNum;
    }

    public void setKnowUserNum(int knowUserNum) {
        this.knowUserNum = knowUserNum;
    }

    public int getNameMatchNum() {
        return nameMatchNum;
    }

    public void setNameMatchNum(int nameMatchNum) {
        this.nameMatchNum = nameMatchNum;
    }

    public int getNoKnowUserNum() {
        return noKnowUserNum;
    }

    public void setNoKnowUserNum(int noKnowUserNum) {
        this.noKnowUserNum = noKnowUserNum;
    }

    public int getNameUnMatchNum() {
        return nameUnMatchNum;
    }

    public void setNameUnMatchNum(int nameUnMatchNum) {
        this.nameUnMatchNum = nameUnMatchNum;
    }

    public int getNoAnswerNum() {
        return noAnswerNum;
    }

    public void setNoAnswerNum(int noAnswerNum) {
        this.noAnswerNum = noAnswerNum;
    }

    public int getAssignNum() {
        return assignNum;
    }

    public void setAssignNum(int assignNum) {
        this.assignNum = assignNum;
    }

    public String getSysLoginName() {
        return sysLoginName;
    }

    public void setSysLoginName(String sysLoginName) {
        this.sysLoginName = sysLoginName;
    }

    public String getFinishRateFormat() {
        if (getAssignNum() > 0) {
            return StringUtil.numberFormatterThousandPercent((getFinishedNum() * 1F / getAssignNum()) + "");
        }
        return "0%";
    }

    public long getAssignDate() {
        return assignDate;
    }

    public String getAssignDateFormat() {
        return ZHICalendarUtil.getDateFormated(getAssignDate());
    }

    public void setAssignDate(long assignDate) {
        this.assignDate = assignDate;
    }

    public String getDate() {
        return StringUtil.safeString(date);
    }

    public void setDate(String date) {
        this.date = date;
    }
}
